# 周林浙
# 时间：2025/3/7 10:39
def count_stracters(input_string):
    zimu = 0
    kongge= 0
    shuzi = 0
    others = 0

    for str in input_string:
        if str.isalpha():
            zimu += 1
        elif str.isspace():
            kongge += 1
        elif str.isdigit():
            shuzi += 1
        else:
            others += 1

    return zimu, kongge, shuzi, others


input_string = input("请输入一行字符: ")


zimu, kongge, shuzi, others = count_stracters(input_string)

# 打印结果
print(f"字母: {zimu}")
print(f"空格: {kongge}")
print(f"数字: {shuzi}")
print(f"其他字符: {others}")
